﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FlyingHat.Core.Migrations
{
    public partial class removeCode : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Sort",
                table: "Bookshelf");

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 30, 22, 8, 49, 653, DateTimeKind.Local).AddTicks(7506), new DateTime(2021, 12, 30, 22, 8, 49, 653, DateTimeKind.Local).AddTicks(7511), new DateTime(2021, 12, 30, 22, 8, 49, 653, DateTimeKind.Local).AddTicks(7491), "5EEE374AD805879365582F678FAA8313", "392049F7B9069451157CFB26DAD3F16D70674B188A2F0C967FF5982D603B6CFD5CC69C8A" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "Sort",
                table: "Bookshelf",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 28, 21, 10, 18, 310, DateTimeKind.Local).AddTicks(391), new DateTime(2021, 12, 28, 21, 10, 18, 310, DateTimeKind.Local).AddTicks(397), new DateTime(2021, 12, 28, 21, 10, 18, 310, DateTimeKind.Local).AddTicks(377), "AF6BA89EA5C136C69FCCEEE7D3F5D8E3", "B1A06D30B29B19BFEAFFC60AF2589AF4142F9E4F360AB0143E469F6849A893039EDF3113" });
        }
    }
}
